import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

class SearchUserPage extends StatefulWidget {
  SearchUserPage({Key key}) : super(key: key);

  @override
  _SearchUserPageState createState() => _SearchUserPageState();
}

class _SearchUserPageState extends State<SearchUserPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        elevation: 0,
        title: Text(
          "搜索联系人、聊天记录",
          style:
              TextStyle(fontSize: ScreenUtil().setSp(15), color: Colors.black),
        ),
      ),
      body: Container(
        color: Colors.white,
        child: ListView(
          children: [
            InkWell(
              onTap: () {},
              child: Container(
                height: ScreenUtil().setHeight(32),
                alignment: Alignment.center,
                padding: EdgeInsets.only(left: 20),
                margin: EdgeInsets.only(
                    left: ScreenUtil().setWidth(10),
                    top: ScreenUtil().setHeight(10),
                    right: ScreenUtil().setWidth(15)),
                decoration: BoxDecoration(
                    color: Color.fromRGBO(241, 241, 241, 1),
                    borderRadius: BorderRadius.circular(6)),
                child: TextField(
                  cursorColor: Colors.lightBlueAccent,
                  keyboardType: TextInputType.name,
                  autofocus: false,
                  onChanged: (value) {},
                  textAlign: TextAlign.center,
                  decoration: InputDecoration(
                      border: InputBorder.none,
                      hintText: "搜索联系人、聊天记录",
                      hintStyle: TextStyle(
                        fontSize: ScreenUtil().setSp(13),
                      )),
                ),
              ),
            ),
          ],
        ),
      ),
    );
  }
}
